import request from '@/utils/request'


export function cityAreaList() {
  return request({
    url: '/area/area/list',
    method: 'get'
  })
}


export function addCityArea(data) {
  return request({
    url: '/area/area',
    method: 'post',
    data: data
  })
}

export function updateCityArea(data) {
  return request({
    url: '/area/area',
    method: 'put',
    data: data
  })
}
export function delCityArea(id) {
  return request({
    url: '/area/area/' + id,
    method: 'delete'
  })
}

export function cityAreaCascader() {
  return request({
    url: '/area/area/cascader',
    method: 'get'
  })
}


